package com.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.entity.Student;

public interface StudentService {
	public List<Student> getAllStudent() throws SQLException,ClassNotFoundException;
	public List<Student> getStudentByName(String name) throws SQLException, ClassNotFoundException;
	public boolean addStudent(Student student) throws IllegalArgumentException, IllegalAccessException, SQLException,ArithmeticException;
	public boolean updateStudent(Student student);

	/**
	 * 权限使用
	 * @param name
	 * @return
	 */
	public List<String> getPermissionsByStudentName(String name);
	public List<Map> select(String methodname);
	public Student loginStudentByName(String name);
}
